package util;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 字符串 与 16进制 互转
 *
 * Created by Zhou_Bing on 2018/9/27.
 */
public class Hex2Str {


    public static void main(String[] args) throws ParseException {


        Integer[] arr = new Integer[]{199, 212, 185, 46, 251, 100, 39, 148, 56, 150, 68, 106, 197, 237, 199, 228};

        for(Integer a : arr){
            System.out.print(Integer.toHexString(a));
        }

        String str = "code_in";
        System.out.println(str.substring(0,str.length()-3));


        System.out.println("2018-11-12 11:11:11".substring(0,16));

        System.out.println("2018-10-25 10:35".length());
    }
}
